from chatgpt_automation import ChatGPTAutomation

chat_bot = ChatGPTAutomation(
    # chrome_path=r"C:\Program Files\Google\Chrome\Application\chrome.exe", 
    chrome_driver_path=r"C:\Windows\System32\chromedriver.exe",
    # username="<your username here>", # Optional
    # password="<your password here>"  # Optional
)

# Send prompt
chat_bot.send_prompt_to_chatgpt("Hello, ChatGPT!")

# Save conversation
chat_bot.save_conversation("conversation.txt")

chat_bot.upload_file_for_prompt("test_file.txt")
chat_bot.send_prompt_to_chatgpt("Explain this file?")

if chat_bot.check_response_status():
    print("Response ready.")
else:
    print("Response issue.")

chat_bot.send_prompt_to_chatgpt("Hello, ChatGPT!")
response = chat_bot.return_last_response()

chat_bot.switch_model(4)

if chat_bot.check_login_page():
    chat_bot.login()
